# https://blog.csdn.net/b1049112625/article/details/136501488  configure file

function(generate_file)

    set(one_value_keywords DEST_DIR SRC_FILE)

    cmake_parse_arguments(arg
        "${options}"
        "${one_value_keywords}"
        "${multi_value_keywords}"
        ${ARGN})

    cmake_path(GET arg_SRC_FILE FILENAME dst_file_name)

    set(LIBRARIES lib1 lib2 lib3)  
    string(JOIN ":" LIBRARIES_STR "${LIBRARIES}")  
    message(STATUS "Joined libraries: ${LIBRARIES_STR}")

endfunction()